package com.aaa.member.service;

import com.aaa.common.bo.TbCar;
import com.aaa.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("carServer")
public interface CarService {
    /**
     * 远程调用修改车辆状态方法
     * @param tbCar
     * @return
     */
    @PutMapping("/tbCar/update")
    Result update(@RequestBody TbCar tbCar);

    @GetMapping("/tbCar/selectOne")
    TbCar selectOne(@RequestParam("carId") Integer carId);
}
